package com.hbxx.lotteryapp.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.hbxx.lotteryapp.commons.Result;
import com.hbxx.lotteryapp.entity.WXAuth;
import com.hbxx.lotteryapp.entity.WxUser;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author crush
 * @since 2021-09-14
 */
public interface IWxUserService extends IService<WxUser> {

    /**
     * 登录授权
     * @param code
     * @return
     */
    Result authLogin(String code);

    /**
     * 获取登录用户信息
     * @param request
     * @return
     */
    Result userInfo(HttpServletRequest request);

    //Result authLogin(WXAuth wxAuth);
}
